package com.jt.demo8_anno;


import org.springframework.stereotype.Component;

@Component//将对象交给Spring容器管理
//key:tiger value:反射后的对象
public class Tiger implements Pet {

    @Override
    public void hello() {
        System.out.println("what's up");
    }
}
